python test paindromicity